import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// Vant组件库
import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);

// axios配置
import axios from "axios";
import VueAxios from "vue-axios";
// 本地代理
axios.defaults.baseURL = "/";
Vue.use(VueAxios, axios);

//动画图
import animated from 'animate.css'
Vue.use(animated);

//moment时间配置
import moment from 'moment'
moment.locale('zh-cn'); //设置语言 或 moment.lang('zh-cn');
Vue.prototype.$moment = moment;

// 注册全局组件
import registerCom from './components/global/register'
Vue.use(registerCom)

// 关闭生产提示
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");